package com.qys.livesMall.shortVideo.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 短视频信息
 * </p>
 *
 * @author dp
 * @since 2023-05-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("h2_short_video")
@Schema(name = "H2ShortVideo对象", description = "短视频信息")
public class H2ShortVideo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    @TableId("id")
    private String id;

    @Schema(description = "标题")
    @TableField("title")
    private String title;

    @Schema(description = "短视频链接")
    @TableField("url")
    private String url;

    @Schema(description = "封面图片")
    @TableField("img")
    private String img;

    @Schema(description = "详情")
    @TableField("detail")
    private String detail;

    @Schema(description = "创建人")
    @TableField("user_id")
    private Long userId;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @Schema(description = "状态(0创建,1审核通过,2审核不通过)")
    @TableField("status")
    private Integer status;

    @Schema(description = "审核人")
    @TableField("audit_user")
    private String auditUser;

    @Schema(description = "是否删除")
    @TableField("deleted")
    private Boolean deleted;

    @Schema(description = "短视频分类id")
    @TableField("short_video_category_id")
    private Long shortVideoCategoryId;

    @Schema(description = "短视频分类名称")
    @TableField("short_video_category_name")
    private String shortVideoCategoryName;

    @Schema(description = "点赞数量")
    @TableField("like_count")
    private Integer likeCount;

    @Schema(description = "收藏数量")
    @TableField("collection")
    private Integer collection;

    @Schema(description = "查看次数")
    @TableField("watch")
    private Integer watch;

    @Schema(description = "是否展示")
    @TableField("`show`")
    private Byte show;

    @Schema(description = "排序")
    @TableField("sort")
    private Integer sort;

    @Schema(description = "头像")
    @TableField("avatar")
    private String avatar;

    @Schema(description = "用户名")
    @TableField("user_name")
    private String userName;

    @Schema(description = "转发")
    @TableField("forward")
    private Integer forward;

    @Schema(description = "奖励金额")
    private BigDecimal bonus;

    @Schema(description = "音乐id")
    private Long musicId;
}
